<?php
include("../lib/db.lib");
include("../lib/std.lib");
include("user_check.php");

$cat_id=param("cat_id");
$pd_id=param("pd_id");
$title=product_get_title($shop_id,$pd_id);
if(cat_product_set_other($cat_id,$pd_id,"")){
	$str="Shop $shop_id : Product <i>$title</i>  added.";
}
else
{
		$str="Error in updating the database!";
}

redirect($str,"./p_cat_pd_list.php?cat_id=$cat_id",2);

?>
